import java.util.function.Predicate;

/**
 * @ClassName Demo06
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 15:11
 * @ModifyDate 2022/8/14 15:11
 * @Version 1.0
 */
public class Demo06 {
    private static void method(Predicate<String> pre) {
        boolean test = pre.test("HelloWorld");
        System.out.println("该字符串是否很长：" + test);
    }

    public static void main(String[] args) {
        method(s -> {
            return s.length() > 6;
        });
    }
}
